<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico.css" />
	<!--[if IE 7]>
		<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico-ie7.css">
	<![endif]-->
	<script type='text/javascript' src='http://localhost/obj/movier/HDPHP/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>

	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/js/extend.js'></script>
	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Comment/js/js.js'></script>

	<title>评论列表</title>
</head>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="<?php echo U('Article/index');?>"><i class="icon-comment mr3 gray"></i>文章管理</a>
		<a href="<?php echo U('index',array('aid'=>$_GET['aid']));?>" class="act"><i class="icon-comment-alt mr3 gray"></i>评论管理</a>
		<a href="<?php echo U('updateCache');?>" class="ajax" actUrl="<?php echo U('index');?>"><i class="icon-refresh mr3 gray"></i>更新缓存</a>
	</div>
	<div class="p10">
		<form action="<?php echo U('del');?>" method="post">
			<input type="hidden" name="aid" value="<?php echo $_GET['aid'];?>">
			<div class="">
				<a href="" onclick="return submits();" class="bgwhite p5 dib btc blc brc gray a" /><i class="icon-trash icon-large mr3"></i>删除选中项</a>
			</div>
			<table class="table">
				<tr class=' white fm f14'>
					<th class="pct5 tc"><input id="checkAll" type="checkbox" /></th>
					<th class="pct5 tc">cid</th>
					<th class="pct5 tc">Aid</th>
					<th class="pct40">评论内容</th>
					<th class="pcd10">评论人</th>
					<th class="pct20">发布时间</th>
					<th class="pct20 tc">操作</th>
				</tr>
				<?php if(is_array($comment)):?><?php  foreach($comment as $c){ ?>
					<tr level="<?php echo $c['_level'];?>" cid="<?php echo $c['cid'];?>" pid="<?php echo $c['pid'];?>" onclick="level(this);">
						<td class='tc'><input type="checkbox" name="cid[]" value="<?php echo $c['cid'];?>" /></td>
						<td class='tc'><span class="b gray2"><?php echo $c['cid'];?></span></td>
						<td class='tc'><span class="b gray2"><?php echo $c['aid'];?></span></td>
						<td class=''><?php echo mb_substr($c['content'],0,20,'utf-8');?></td>
						<td class='tc fv'><?php echo $c['nickname'];?></td>
						<td class='tc fv'><?php echo hd_date($c['addtime'],'Y-m-d H:i:s');?></td>
						<td class='tc'>
							<a href="<?php echo U('del?cid=');?><?php echo $c['cid'];?>/aid/<?php echo $c['aid'];?>" class="a bgwhite dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large"></i>删</a>
						</td>
					</tr>
				<?php }?><?php endif;?>
			</table>
		</form>
	</div>
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?>	</body>
</html>
